﻿// -----------------------------------------------------------------------
// <copyright file="Condition.cs" company="Microsoft">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace CFScript
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class BooleanExpression
    {
        // http://www.codeproject.com/Articles/29713/Parsing-Expression-Grammar-Support-for-C-3-0-Part
        // http://stackoverflow.com/questions/1505960/best-fastest-way-to-write-a-parser-in-c-sharp
        // http://sablecc.sourceforge.net/grammars/simplec.sablecc.web.html
        // http://www.antlr.org/wiki/display/ANTLR3/FAQ+-+Getting+Started
        // http://www.antlr.org/wiki/display/ANTLR3/Antlr3CSharpReleases
        // http://www.mare.ee/indrek/sablecc/
        // http://improve.dk/archive/2009/09/30/writing-a-calculator-in-csharp-using-sablecc.aspx
        // http://nat.truemesh.com/archives/000531.html
        // http://www.codeproject.com/Articles/28294/a-Tiny-Parser-Generator-v1-2
        // http://irony.codeplex.com/wikipage?title=expression%20grammar%20sample&referringTitle=Home
        BooleanOperator op;
        BooleanParameter[] parameters;

        public bool Evaluate()
        {
            return true;
            //return op.Evaluate(this.parameters);
        }

        public static BooleanExpression Factory(string expressionString)
        {
            return null;
        }

        public void setCondition(string expression)
        {

        }
    }
}
